﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MulticastTV
{
    /// <summary>
    /// Form for vlc rpc client/server playlists export.
    /// </summary>
    public partial class VLMExportForm : Form
    {
        public VLMExportForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    ExportToVLM evlm = new ExportToVLM();
                    evlm.Vlm(folderBrowserDialog1.SelectedPath + @"\vlm.cfg");
                    evlm.M3u(folderBrowserDialog1.SelectedPath + @"\playlist.m3u", textBox1.Text);
                    
                }
                catch { }
                this.Close();
            }
        }
    }
}
